﻿namespace YunZuan.Models.Entities
{
    /// <summary>
    /// Ajax调用结果
    /// </summary>
    /// <remarks>
    /// 与ExtJs异常机制对接
    /// </remarks>
    public class InvokeResult
    {
        /// <summary>
        /// 执行状态
        /// </summary>
        /// <remarks>
        /// true:   成功
        /// false:  失败
        /// </remarks>
        public bool success { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        public string exceptionMsg { get; set; }

        /// <summary>
        /// 堆栈信息
        /// </summary>
        public string stackMsg { get; set; }

        /// <summary>
        /// 数据结果
        /// </summary>
        public object result { get; set; }

        /// <summary>
        /// 异常类型
        /// </summary>
        /// <remarks>
        /// 'warn' 主动抛出系统提示信息
        /// '' 执行异常
        /// 'login' 登录超时
        /// </remarks>
        public string exceptionType { get; set; }
    }
}
